const dev = require('./dev');
const prod = require('./prod');
// const database = require('./database.js');

const mode = process.env.NODE_ENV;
const pwd = process.cwd();

const common = (mode == 'development') ? dev : prod;

config = {
  ...common,
  secret: 'secret', // token密钥
  // 临时文件存放地址
  tempFilePath: `${pwd}/src/static/temp`,
}

module.exports = config;